import http from '../../utils/axios'
//添加字典
export function dictTypeAdd(query:any) {
  return http.request({
    url: '/dict_type/add',
    method: 'post',
    data: query
  })
}
//修改字典
export function dictTypeUpdate(query:any) {
    return http.request({
      url: '/dict_type/update',
      method: 'post',
      data: query
    })
}
//删除字典
export function dictTypeDel(query:any) {
    return http.request({
      url: '/dict_type/del',
      method: 'post',
      data: query
    })
}
//字典启用跟禁用
export function dictTypeStatus(query:any) {
    return http.request({
      url: '/dict_type/status',
      method: 'post',
      data: query
    })
}
//字典子级添加
export function dictDetailAdd(query:any) {
    return http.request({
      url: '/dict_detail/add',
      method: 'post',
      data: query
    })
}
//字典子级修改
export function dictDetailUpdate(query:any) {
    return http.request({
      url: '/dict_detail/update',
      method: 'post',
      data: query
    })
}
//字典子级删除
export function dictDetailDel(query:any) {
    return http.request({
      url: '/dict_detail/del',
      method: 'post',
      data: query
    })
}
//字典子级启用跟禁用
export function dictDetailStatus(query:any) {
    return http.request({
      url: '/dict_detail/status',
      method: 'post',
      data: query
    })
}